INT

[Function] - returns the Integer value (cuts anything after decimal point off) of the given float value


Syntax:

INT(Value)

Parameters:

Value: Any numeric value or expression

Description:

Returns the integer value of the given argument. Argument must be a numeric expression. Returned value has the same type as the input argument.

Examples:

REM 'Integer value
LET a = -1.5649
PRINT "Integer value of a is "; INT(a)
REM 'Will print -1

Notes:

See also:

ABS


Supported Plattforms:

ZX Spectrum